<!DOCTYPE html>
<html>
<head>
	<title>发布文章</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url() .'/style/admin'?>/css/public.css">
	<style>
		span{
			color: red;
		}
	</style>
</head>
<body>
	<form action="<?php echo site_url('admin/sent/send')?>" method="post" enctype="multiparty/form-data">
		<table class="table">
			<tr>
				<td class="th" colspan="10">编辑文章</td>
			</tr>
			<tr>
				<td>文章标题</td>
				<td><input type="text" name="title" value="<?php echo set_value('title')?>">
					<?php echo form_error('title','<span>','</span>') ?>
				</td>
			</tr>
			<tr>
				<td>类型</td>
				<td>
					<input type="radio" name="type" value="0" <?php echo set_radio('type','0',TRUE)?> >热门
					<input type="radio" name="type" value="1" <?php echo set_radio('type','1')?> >普通
				</td>
			</tr>
			<tr>
				<td>栏目</td>
				<td>
					<select name="cid" id="">
						<option value="1" <?php echo set_select('cid','1',TRUE)?> >情感</option>
						<option value="2" <?php echo set_select('cid','2')?> >生活</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>缩略图</td>
				<td><input type="file"></td>
			</tr>
			<tr>
				<td>摘要</td>
				<td>
					<textarea name="info" id="" style="width: 550px;height: 160px">
						<?php echo set_value('info')?>
					</textarea>
					<?php echo form_error('info','<span>','</span>')?>
				</td>
			</tr>
			<tr>
				<td>内容</td>
				<td>
					<textarea name="content" id="" style="width: 550px;height: 500px">
						<?php echo set_value('content')?>
					</textarea>
						<?php echo form_error('content','<span>','</span>')?>
				</td>
			</tr>
			<tr>
				<td colspan="10">
					<input type="submit" class="input_button" value="发布">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>